import { BasicFetchResult, BasicPageParams } from '/@/api/model/baseModel';

export type CreateRoleParam = {
  roleName?: string;
  status?: number;
  roleCode: string;
  orderNo: number;
  description?: string;
  menu?: number[];
};

export interface RoleListItem {
  id: string;
  roleName: string;
  roleValue: string;
  status: number;
  orderNo: string;
  createTime: string;
}

export type UpdateRoleParam = {
  id: number;
  roleName?: string;
  status?: number;
  roleCode: string;
  orderNo: number;
  description?: string;
  menu?: number[];
};

export type RoleInfo = {
  roleCode: string;
  roleName: string;
};

export type RoleParams = {
  roleName?: string;
  status?: string;
};

export type RolePageParams = BasicPageParams & RoleParams;

export type RoleListGetResultModel = RoleListItem[];

export type RolePageListGetResultModel = BasicFetchResult<RoleListItem>;
